<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>综合官网</title>
    <!--公共样式-->
    <link rel="stylesheet" href="css/base.css">
    <!--本页面css-->
    <link rel="stylesheet" href="css/problem.css">
    <!--导航栏css-->
    <link rel="stylesheet" href="css/style.css">
    <!--公用样式-->
    <link rel="stylesheet" href="css/common.css">
    <!--swiper-->
    <link rel="stylesheet" href="lib/swiper/swiper.min.css">
</head>
<body style>

<!--回到顶部-->
<div class="backtop">
    <a href="#" class="">
        TOP
    </a>

</div>

<!--头部开始-->
<header>
    <div class="w header-w">
        <!--logo部分-->
        <div class="logo">
            <h1>
                <a href="/">

                </a>
            </h1>
        </div>

        <!--搜索框-->
        <div id="search" class="">
            <div class="search-m">
                <div class="form">
                    <button class="search-btn">
                        搜索
                    </button>
                    <input type="" name="" class="search-inp" style="color: rgb(153,153,153);"
                           placeholder="炸鸡、汉堡、麻辣烫...">

                </div>
            </div>
            <!--搜索热词-->
            <div class="search-word">
                <a href="javascript:void(0);">投资金额：</a>
                <a href="javascript:void(0);">3-5万</a>
                <a href="javascript:void(0);">5-10万</a>
                <a href="javascript:void(0);">15-20万</a>
                <a href="javascript:void(0);">20-30万</a>
            </div>
        </div>

        <!--三个图标-->
        <div class="join">
            <a href="javascript:void(0);">
                <img src="images/index/join01.png" alt="">
                <p>项目库</p>
            </a>
            <a href="javascript:void(0);">
                <img src="images/index/join02.png" alt="">
                <p>招商发布</p>
            </a>
            <a href="javascript:void(0);">
                <img src="images/index/join03.png" alt="">
                <p>展商入驻</p>
            </a>
        </div>
    </div>
</header>
<div id="swiper-container1">

</div>
<!--头部结束-->

<!--面包屑开始-->

<div class="bread ww">
    <a href="/"><i class="iconfont">&#xe6a2;</i>首页</a>
    <span class="iconfont">&#xe603;</span>
    <a href="/">创业问答</a>
    <span class="iconfont">&#xe603;</span>
    <a href="javascript:void(0);">提问</a>
</div>

<!--面包屑结束-->

<!--顶部图片开始-->

<div class="top_img">
    <a href="javascript:void(0);">
        <img src="images/problem/yu_top.png" alt="">
    </a>
</div>

<!--顶部图片结束-->

<!--正文开始-->
<main class="ww">
    <div class="m-left">
        <!--问题表单-->
        <div class="ml-pro">
            <!--提问题-->
            <form action="">
                <input type="text" name="user_question" placeholder="请用一句话描述您的疑问。">
                <div class="filebox">
                    <label for="user_img" class="sure_file">问题描述（图片宽高不超过500像素，大小不超过1 M）</label>
                    <input type="file" name="user_img" id="user_img"
                           accept="image/png, image/jpeg, image/gif, image/jpg">
                    <div class="cbox">
                        <img src="" alt="">
                    </div>
                </div>
                <div class="bot-box">
                    <div class="bot">
                        <input type="checkbox" id="nm"><label for="nm" class="nm-cls">匿名</label>
                        <input type="submit" value="提交">
                    </div>

                </div>
            </form>

            <!--热门问题-->
            <div class="hot-problem">
                <!--标题-->
                <h2 class="hp-title">热门问题</h2>
                <ul class="hp-nav">
                    <li>
                        <a href="javascript:void(0);">
                            <span>2019-1-10</span>
                            <span>开家地锅鸡店的成本 开地锅鸡饭店赚钱吗？</span>
                            <span><i>0</i>回答</span>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0);">
                            <span>2019-1-10</span>
                            <span>开家地锅鸡店的成本 开地锅鸡饭店赚钱吗？</span>
                            <span><i>0</i>回答</span>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0);">
                            <span>2019-1-10</span>
                            <span>开家地锅鸡店的成本 开地锅鸡饭店赚钱吗？</span>
                            <span><i>0</i>回答</span>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0);">
                            <span>2019-1-10</span>
                            <span>开家地锅鸡店的成本 开地锅鸡饭店赚钱吗？</span>
                            <span><i>0</i>回答</span>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0);">
                            <span>2019-1-10</span>
                            <span>开家地锅鸡店的成本 开地锅鸡饭店赚钱吗？</span>
                            <span><i>0</i>回答</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <!--用户信息-->
        <div class="ml-form">
            <!--顶部图片-->
            <div class="service">
                <a href="javascript:void(0);">
                    <img src="images/problem/concact_img.png" alt="">
                </a>
            </div>

            <h2>留言咨询 <i>（24小时内获得企业快速回复）</i></h2>
            <form action="" id="info-form">
                <div>
                    <label for="username" class="username-lab"><i>*</i>姓名：</label>
                    <input type="text" id="username" name="username">
                </div>
                <div class="radiobox">
                    <input type="radio" value="男" name="gender" checked="checked" id="gentleman" class="rad">先生
                    <input type="radio" value="女" name="gender" id="lady" class="rad">女士
                </div>
                <div>
                    <label for="usertel" class="usertel-lab"><i>*</i>联系方式：</label>
                    <input type="tel" id="usertel" name="usertel">
                </div>
                <div class="address-box">
                    <label for="useraddress" class="useraddress-lab">联系地址：</label>
                    <input type="text" id="useraddress" name="useraddress">
                </div>
                <div>
                    <label for="usermsg" class="usermsg-lab">留言信息：</label>
                    <textarea id="usermsg" name="usermsg"></textarea>
                </div>
                <div class="own-information">
                    <span>是否自愿资讯其他项目：</span>
                    <input type="radio" value="男" name="own" checked="checked" id="yes" class="rad">是
                    <input type="radio" value="女" name="own" id="no" class="rad">不是
                </div>
                <input type="submit" value="提交留言" id="submit-btn" name="submit-btn">
            </form>
            <!--快捷留言-->
            <div class="quick-msg">
                <p>快捷留言</p>
                <ul id="quick-nav">
                    <li>我想加盟，请电话联系我。</li>
                    <li>具体加盟条件有哪些？</li>
                    <li>我想到贵公司考察。</li>
                    <li>近期加盟有什么优惠吗？</li>
                    <li>贵公司都有哪些品牌呢？</li>
                    <li>加盟这个品牌需要多少加盟费呢？</li>
                </ul>
            </div>
        </div>
    </div>

    <div class="m-right">
        <!--品牌推荐-->
        <div class="mr-recommend">
            <div class="mrr-title">

            </div>
            <ul>
                <li>
                    <a href="javascript:void(0);">
                        <img src="images/problem/re01.png" alt="">
                        <div>
                            <p>煲百味</p>
                            <p>加盟费：<i>1-5万</i></p>
                            <p>已有：1245人申请加盟</p>
                        </div>
                    </a>
                </li>
                <li>
                    <a href="javascript:void(0);">
                        <img src="images/problem/re02.png" alt="">
                        <div>
                            <p>煲百味</p>
                            <p>加盟费：<i>1-5万</i></p>
                            <p>已有：1245人申请加盟</p>
                        </div>
                    </a>
                </li>
                <li>
                    <a href="javascript:void(0);">
                        <img src="images/problem/re03.png" alt="">
                        <div>
                            <p>煲百味</p>
                            <p>加盟费：<i>1-5万</i></p>
                            <p>已有：1245人申请加盟</p>
                        </div>
                    </a>
                </li>
                <li>
                    <a href="javascript:void(0);">
                        <img src="images/problem/re04.png" alt="">
                        <div>
                            <p>煲百味</p>
                            <p>加盟费：<i>1-5万</i></p>
                            <p>已有：1245人申请加盟</p>
                        </div>
                    </a>
                </li>
            </ul>
            <a href="javascript:void(0);" class="huan">
                <img src="images/problem/huan.png" alt="">
                <i>换一批</i>
            </a>
        </div>
        <!--最新资讯-->
        <div class="mr-news">
            <div class="mrn-title">

            </div>
            <ul>
                <li>
                    <a href="javascript:void(0);">创业加盟还是自营比较好，看过创业加盟还是自营比较好，看过...</a>
                </li>
                <li>
                    <a href="javascript:void(0);">创业加盟还是自营比较好，看过创业加盟还是自营比较好，看过...</a>
                </li>
                <li>
                    <a href="javascript:void(0);">创业加盟还是自营比较好，看过创业加盟还是自营比较好，看过...</a>
                </li>
                <li>
                    <a href="javascript:void(0);">创业加盟还是自营比较好，看过创业加盟还是自营比较好，看过...</a>
                </li>
                <li>
                    <a href="javascript:void(0);">创业加盟还是自营比较好，看过创业加盟还是自营比较好，看过...</a>
                </li>
                <li>
                    <a href="javascript:void(0);">创业加盟还是自营比较好，看过创业加盟还是自营比较好，看过...</a>
                </li>
                <li>
                    <a href="javascript:void(0);">创业加盟还是自营比较好，看过创业加盟还是自营比较好，看过...</a>
                </li>
            </ul>
        </div>
    </div>
</main>

<script src="lib/jq/jquery-1.10.2.min.js"></script>
<script src="lib/validform/validform.js"></script>

<!--导航栏的js-->
<script src="js/tab.js"></script>
<!--swiper-->
<script src="lib/swiper/swiper.min.js"></script>
<script src="js/common.js"></script>
<script>
    $(function () {
        setTimeout(function () {
            $("#swiper-container1").animate({height: "10px"})
        }, 500)

        $(".huan").on("click", function () {
            $(".huan img").addClass("runanimation")
            setTimeout(function () {
                $(".huan img").removeClass("runanimation")
            }, 2000)
        })

        // 图片上传
        function fileUp() {
            $("#user_img").on("change", function (e) {
                var files = this.files;
                var reader = new FileReader();
                reader.readAsDataURL(files[0]);
                reader.onload = function (e) {
                    var dx = (e.total / 1024) / 1024;
                    if (dx >= 1) {
                        alert("文件大小大于1M");
                        return;
                    }
                    $(".cbox img").attr("src", e.target.result)
                }
            })
        }

        fileUp()


        // if ($(".cbox").children("img").length === 0) {
        //     console.log(123)
        //     fileUp()
        // } else {
        //     console.log(789)
        //
        // }

        // 快捷回复
        function quick() {
            $("#quick-nav").on("click", "li", function (e) {
                var tar = $(e.target)
                $("#usermsg").val(tar.html())
            })
        }

        quick()

        var flag = false
        var nameSure = false
        var telSure = false

        $("#info-form").Validform({//给form表单取个id吧
            tiptype: 3,//1,2,3呈现不同效果，可以自行尝试，当然3是最好
            showAllError: true//全部显示错误提示，默认就行
        });
    })
</script>
</body>
</html>
